package com.wakaca.design.pattern.behavioral.visitor;

/**
 * Created by wakac on 2019/4/4
 */
public abstract class Course {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    // 里面可以加一些业务逻辑判断
    public abstract void accept(IVisitor visitor);
}
